$.ajax({
    url:"http://chst.vip:1234/api/getinlanddiscount"
}).then(res=>{
    let html=res.result.reduce((value,item)=>{
        return value+`
        <li productId=${item.productId}>
        <a href="../pages/inlandproduct.html?productid=${item.productId}">
            ${item.productImg}
            <div class="title">${item.productName}</div>
                <p class="price"> ${item.productPrice}</p>
                <p class="form">${item.productFrom}<span>${item.productTime}</span></p>
        </a>
    </li>
        `
    },"")
    $(".inlanddiscount").append(html)
})